/**
 * condition 条件
 * else 
 * children
 */

export default function (props) {
    const condition = props.condition || false;
    const positive = props.children || null;
    const negative = props.else || null;
    return condition ? positive : negative;
}